@import "global";
@import "class";

#dialog_layer{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: none;
	z-index: 100;
	opacity: 0.9;
}

#g_loading{
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.2);
	position: absolute;
	top: 0;
	display: none;
	.area{
		position: fixed;
		left: 50%;
		top: 50%;
		margin: -51px 0 0 -51px;
		z-index: 100;
		padding: 10px;
		background: rgba(0,0,0,.5);
		.radius(6px);
		.loading{
			width: 80px;
			height: 80px;
			border: 3px solid @colorRed;
			border-radius: 80px;
			border-left-color: transparent;
			border-right-color: transparent;
			-webkit-animation: rotate-loading 1.5s linear 0s infinite normal;
			-webkit-transform-origin: 50% 50%;
			animation: rotate-loading 1.5s linear 0s infinite normal;
			transform-origin: 50% 50%;
			@-webkit-keyframes rotate-loading {
				0% {
					transform: rotate(0deg);
					-ms-transform: rotate(0deg);
					-webkit-transform: rotate(0deg);
					-moz-transform: rotate(0deg);
				}
				100% {
					transform: rotate(360deg);
					-ms-transform: rotate(360deg);
					-webkit-transform: rotate(360deg);
					-moz-transform: rotate(360deg);
				}
			}
		}
		span{
			display: block;
			position: absolute;
			width: 80px;
			height: 80px;
			line-height: 80px;
			top: 12px;
			left: 12px;
			color: @colorRed;
			font-size: 16px;
			text-align: center;
		}
	}
}


#dialog_welcome{
	width: 640px;
	height: 364px;
	margin: -182px 0 0 -300px;
    .files{
        width: 400px;
        float: left;
    }
    .links{
        width: 200px;
        float: right;
    }
    .files,.links{
        overflow: hidden;
        height: 290px;
        >p{
            text-align: left;
            width: 540px;
            border-bottom: 1px solid black;
            padding: 4px 0;
            position: relative;
        }
    }
	ul{
		width: 100%;
		height: 250px;
		margin:0 auto;
		li{
			height: 30px;
			line-height: 30px;
			border-bottom: 1px solid @colorShadow;
			text-align: left;
			&:last-child{
				border: none;
			}
			&:hover{
				background-color: @colorHover;
			}
			p:nth-child(2){
				color: mix(@colorText, black, 80%);
			}
			p{
				text-overflow: ellipsis;
				overflow: hidden;
				white-space: nowrap;
			}
		}
	}
	.links{
		li{
			height: 40px;
			line-height: 20px;
		}
	}
    .g_bt{
        clear: both;
    }
}

#dialog_meta{
	width: 560px;
	height: 366px;
	margin: -183px 0 0 -280px;
	&.catch{
		.meta{
			.mode_catch{
				display: block;
			}
		}
	}
	&.key{
		.meta{
			.mode_key{
				display: block;
			}
		}
	}
	&.pad{
		.meta{
			.mode_pad{
				display: block;
			}
		}
	}
	.g_body{
		.left{
			float: left;
			width: 180px;
			text-align: left;
		}
		.cover{
			width: 180px;
			height: 180px;
			border: 1px solid black;
			background-color: @colorDeep;
			position: relative;
			cursor: pointer;
			div, span{
				width: 178px;
				height: 178px;
				position: absolute;
				left: 1px;
				top: 1px;
			}
			span{
				display: none;
				background: url('../img/add-64.png') rgba(255,255,255,0.4) no-repeat 50%;
			}
			&:hover{
				span{
					display: block;
				}
			}
		}
		.meta{
			float: left;
			width: 356px;
			padding: 0 0 10px 6px;
			text-align: left;
			box-sizing: border-box;
			.line{
				line-height: 36px;
				text-align: left;
				&>span{
					display: inline-block;
					width: 70px;
				}
				input, select{
					margin: 0;
					width: 276px;
					.middle(20px);
					text-align: left;
				}
				em {
					width: 40px;
					text-align: center;
					display: inline-block;
				}
			}
			.bar{
				border-bottom: 1px solid @colorDeep;
			}
			.g_slide{
				display: inline-block;
				width: 230px;
				height: 24px;
				vertical-align: middle;
			}
		}
		.g_bt{
			clear: both;
			span:nth-child(2){
				width: 120px;
			}
			span:nth-child(3){
				width: 120px;
			}
		}
		.mode_catch, .mode_key, .mode_pad{
			display: none;
		}
	}
}

#dialog_edit{
	width: 450px;
	height: 178px;
	margin: -89px 0 0 -225px;
	.line{
		line-height: 24px;
		text-align: left;
		&>span{
			display: inline-block;
			width: 60px;
		}
		input{
			width: 56px;
			margin-left: 16px;
			.middle(16px);
		}
	}
	.g_slide{
		display: inline-block;
		width: 292px;
		height: 24px;
		vertical-align: middle;
	}
}

#dialog_grid{
	width: 450px;
	height: 268px;
	margin: -90px 0 0 -200px;
	&.pad{
		height: 130px;
		#dialog_grid_track_stat{
			display: none!important;
		}
	}
	#dialog_grid_track_stat{
		height: 114px;
	}
	.line{
		&.track_stat{
			padding-bottom: 4px;
			.g_button{
				width: 78px;
			}
		}
		.number{
			width: 24px;
			display: block;
			float:  left;
			height: 100%;
			border-right: 1px solid #000000;
			text-align: center;
		}
		.stat{
			float:  left;
			margin-left: 8px;
		}
		line-height: 24px;
		text-align: left;
		&>span{
			display: inline-block;
			width: 60px;
			&.number{
				width: 26px;
				text-align: center;
			}
		}
		input{
			width: 56px;
			margin-left: 16px;
			.middle(16px);
		}
	}
	.vert{
		display: none;
	}
	.g_slide{
		display: inline-block;
		width: 240px;
		height: 24px;
		vertical-align: middle;
	}
	&.catch{
		height: 204px;
		margin-top: -102px;
		.vert{
			display: block;
		}
	}
	p{
		text-align: left;
	}
}

#dialog_grid_aux{
	width: 360px;
	height: 106px;
	margin: -53px 0 0 -180px;
	.line{
		line-height: 24px;
		text-align: left;
		&>span{
			display: inline-block;
			width: 60px;
		}
		input{
			width: 56px;
			margin-left: 16px;
			.middle(16px);
		}
		.g_slide{
			display: inline-block;
			width: 200px;
			height: 24px;
			vertical-align: middle;
		}
	}
}

#dialog_timing{
	width: 560px;
	height: 296px;
	margin: -135px 0 0 -280px;
	.line{
		line-height: 24px;
		text-align: left;
		&>span{
			display: inline-block;
			width: 80px;
			vertical-align: top;
			&.right{
				float: right;
				margin-right: 0;
			}
		}
		input{
			width: 78px;
			margin-left: 16px;
			.middle(22px);
		}
		#dialog_timing_title{
			padding-left: 4px;
			width: 350px;
		}
	}
	.ret{
		margin: 6px 0;
		i{
			display: inline-block;
			width: 60px;
			padding-left: 3px;
			font-style: normal;
		}
		input{
			margin: 0;
		}
	}
	.btn{
		padding: 0 0 10px 80px;
		margin: 3px 0 10px;
		position: relative;
		border-bottom: 1px solid black;
		&:after{
			.shadow;
			content: '';
			position: absolute;
			bottom: -2px;
			left: 0;
		}
		.g_button{
			width: 24px;
			&:nth-child(1){
				i{
					background-position: -40px -165px;
				}
			}
			&:nth-child(2){
				i{
					background-position: -11px -165px;
				}
			}
		}
		.right{
			float: right;
			display: inline-block;
			span{
				padding-left: 5px;
			}
		}
	}

	.bpm{
		margin: 3px 0 0 0;
		position: relative;
		height: 82px;
		#dialog_timing_grid, #dialog_timing_tip{
			width: 100%;
			height: 80px;
			.radius(4px);
			position: absolute;
		}
		#dialog_timing_tip {
			z-index : 233;
		}
		#dialog_timing_grid{
			background: @colorDeep;
			border:1px solid black;
			.inner-shadow(2px, @colorShadow);
			position: relative;
			.bar{
				position: absolute;
				width: 8px;
				height: 72px;
				top: 3px;
				margin-left: -4px;
				.radius(5px);
				border: 1px solid black;
				left: 57px;
				background-image: -webkit-radial-gradient(50% 50%, circle cover, rgb(128, 128, 128) 3%, rgb(154, 154, 154) 61%);

				&.move_left{
					-webkit-transform:translateX(0px)
				}
				&.move_right{
					-webkit-transform:translateX(422px)
				}
			}
			.white_point{
				background-color: #fff;
				border-radius: 4px;
				width: 8px;
				height: 8px;
				top: 34px;
				position: absolute;
				&.left{
					left:10%;
				}
				&.right{
					right:10%;
				}
			}
		}
		#dialog_timing_tip{
			background: @colorHover;
			font-size: @fontSize * 1.5;
			left: 1px;
			top: 1px;
			line-height: 80px;
			em{
				color: @colorRed;
				font-weight: bold;
			}
			display: none;
		}
	}
}

#dialog_about{
	width: 380px;
	height: 158px;
	margin: -79px 0 0 -190px;
	.line{
		line-height: 24px;
		text-align: left;
		&>span{
			display: inline-block;
			width: 80px;
			vertical-align: top;
		}
		p{
			display: inline-block;
		}
	}
}

#dialog_layer_edit{
	width: 200px;
	height: 256px;
	left: auto;
	top: auto;
	right: 190px;
	bottom: 39px;
	margin: 0;
	overflow: hidden;
	.select{
		-webkit-column-count: 5;
		-webkit-column-gap: 2px;
		height: 120px;
		overflow: hidden;
		i{
			width: 32px;
			height: 24px;
			display: inline-block;
			border: 1px solid black;
			background: #ccc;
			&:hover{
				border: 1px solid white;
			}
		}
	}
	.line{
		line-height: 24px;
		text-align: left;
		input{
			width: 175px;
			height: 22px;
			margin: 3px 0 0 0;
			text-align: left;
		}
	}
}

#dialog_config{
	width: 500px;
	height: 294px;
	margin: -150px 0 0 -250px;
  	&.pad{
	  	height: 384px;
	  	.pad_marker{
		  	display: block!important;
		}
	}
	.cate{
		display: block;
		&.pad_marker{
		  	display: none;
		}
		text-align: left;
		position: relative;
		line-height: 24px;
		&:after{
			content: '';
			display: block;
			position: absolute;
			top: 12px;
			width: 100%;
			border-top: 1px solid @colorDeep;
			z-index: -1;
		}
		span{
			background-color: @colorTheme;
			padding: 4px;
			margin-left: 10px;
		}
	}
	.g_slide{
		vertical-align: middle;
		width: 350px;
		display: inline-block;
	}
	.line{
		line-height: 28px;
		text-align: left;
		&>span{
			display: inline-block;
			width: 80px;
			vertical-align: top;
			&.cen{
				text-align: center;
			}
			&.auto{
				width: auto;
				padding-right: 6px;
			}
		}
	  	.desc{
		  	line-height: 20px;
		}
	  	&.pad_marker{
			display: none;
	  	}
	}
	input{
		margin: 0;
		text-align: left;
	}
	#volume_val{
		width: 46px;
		text-align: center;
	}
	#config_path, #config_marker{
		width: 308px;
		vertical-align: top;
		text-align: left;
	}
	#config_proxy{
		width: 250px;
	}
	#config_port{
		width: 60px;
	}
}

#dialog_timelist{
	width: 400px;
	height: 314px;
	margin: -157px 0 0 -200px;
  	.taiko_only{
	  	display: none;
	}

	.left{
		float: left;
		width: 190px;
		height: 230px;
		margin-bottom: 8px;
		.head{
			background-color: @colorDeep;
			width: 100%;
			color: white;
			text-align: left;
			span{
				display: inline-block;
				width: 49.5%;
				text-align: center;
				&:nth-child(1){
					border-right: 1px solid #888;
				}
			}
		}
		#timelist_list{
			width: 100%;
			height: 180px;
			box-sizing: border-box;
			border: 1px solid black;
			border-top: none;
			-webkit-border-top-left-radius: 0;
			-webkit-border-top-right-radius: 0;

			li{
				span{
					display: inline-block;
					width: 50%;
				}
				&.curr{
					background: @colorHover;
				}
			}
		}
		.line{
			margin-top: 4px;
			text-align: left;
			i{
				background-image: url('../img/tool.png');
				background-size: 140px;
				display: block;
				width: 100%;
				height: 100%;
			}
			span{
				width: 24px;
				.radius(2px);
				margin-left: 0;
			}
			span:nth-child(1){
				i{
					background-position: -74px -92px;
				}
			}
			span:nth-child(2){
				i{
					background-position: -106px -92px;
				}
			}
		}
	}
	.right{
		float: left;
		width: 184px;
		height: 200px;
		text-align: left;
		box-sizing: border-box;
		padding-left: 8px;
		input{
			margin: 0;
			width: 100%;
		}
		.line{
			-webkit-column-count: 3;
			-webkit-column-gap: 6px;
			width: 182px;
			input{
				width: 50px;

			}
		}
		p{
			text-align: right;
			width: 179px;
			margin-top: 6px;
			span{
				margin: 0;
			}
		}
	}
	.g_bt{
		clear: both;
	}
}

.taiko_mode{
  	#dialog_timelist{
	  	.taiko_only{
		  	display: inherit;
		}
	}
}

#dialog_intro{
	width: 500px;
	height: 400px;
	margin: -200px 0 0 -250px;
	.title{
		font-size: 16px;
	}
	.body{
		text-align: left;
		em{
			color:@colorRed;
			font-weight: bold;
		}
		.img{
			text-align: center;
		}
		img{
			width: 100%;
			vertical-align: middle;
		}
	}
	.g_bt{
		position: fixed;
		bottom: 0;
		width: 96%;
	}
	#create_music{
		width: 100%;
		height: 120px;
		line-height: 120px;
		text-align: center;
		margin-top: 8px;
		box-sizing: border-box;
		border: 2px dotted @colorHover;
		font-size: 20px;
		&:hover{
			background: @colorHover;
			color: black;
		}
		.ok{
			display: none;
		}
		&.ok{
			span{
				display: none;
			}
			.ok{
				display: block;
			}
		}
	}
}

#dialog_test{
	width: 400px;
	height: 134px;
	margin: -67px 0 0 -200px;
	.line{
		line-height: 24px;
		text-align: left;
		&>span {
			display: inline-block;
			width: 60px;
		}
	}
	#test_name{
		width: 200px;
		text-align: left;
	}
}


#dialog_review{
	width: 250px;
	height: 185px;
	left: auto;
	top: auto;
	right: 190px;
	bottom: 43px;
	margin: 0;
	overflow: hidden;
	.select{
		text-align: left;
		line-height: 22px;
		i, label{
			display: inline-block;
			vertical-align: middle;
		}
		i{
			width: 16px;
			height: 16px;
			border: 1px solid black;
			margin-right: 3px;
			&:nth-child(1){
				background-color: #ff9900;
			}
			&:nth-child(3){
				background-color: #33cc33;
			}
			&:nth-child(5){
				background-color: #ef6666;
			}
		}
		label{
			cursor: pointer;
			color: #999;
			margin-right: 6px;
			&.curr{
				color: white;
			}
		}
		.g_button{
			width: 40px;
			float: right;
			margin: 0;
		}
	}
	.line{
		padding-top: 3px;
		clear: both;
		textarea{
			width: 100%;
			height: 118px;
			margin: 0;
			text-align: left;
			box-sizing: border-box;

		}
	}
}

#dialog_login{
	width: 300px;
	height: 140px;
	margin: -70px 0 0 -150px;
	.user{
		height: 58px;
		line-height: 58px;
	}
	.line{
		line-height: 28px;
		text-align: left;
		&>span {
			display: inline-block;
			width: 60px;
		}
		input{
			margin: 0;
			width: 212px;
			text-align: left;
		}
	}
}

#dialog_upload_online{
	width: 400px;
	height: 250px;
	margin: -125px 0 0 -200px;
	.body{
		text-align: left;
		height: 170px;
	}
	.page0{
		.btn{
			margin-top: 10px;
		}
		span{
			display: block;
			font-size: 16px;
			border-bottom: 1px solid @colorShadow;
			height: 30px;
			line-height: 30px;
			padding-left: 3px;
			&:last-child{
				border: none;
			}
			&:hover{
				background-color: @colorHover;
			}
		}
	}
	.page1{
		.line{
			margin-top: 10px;
		}
		em{
			color: @colorRed;
		}
		input{
			text-align: left;
		}
	}
	.page2{
		.err{
			color: @colorRed;
			display: none;
		}
		p{
			margin-bottom: 10px;
		}
	}
}

#dialog_upload {
	width: 400px;
	height: 424px;
	margin: -212px 0 0 -200px;
	text-align: left;
	.g_bt{
		text-align: center;
	}
	p{
		font-size: 13px;
	}
	.select{
		text-align: left;
		line-height: 22px;
		span{
			margin-right: 10px;
		}
		i, label{
			display: inline-block;
			vertical-align: middle;
		}
		i{
			width: 1px;
			height: 16px;
			border-left: 1px solid @colorRed;
			margin: 0 4px;
		}
		label{
			cursor: pointer;
			color: #999;
			margin:0 6px;
			&.curr{
				color: white;
			}
		}
	}
	#dialog_upload_all{
		span{
			font-size: 13px;
			width: auto;
			padding: 0 3px;
		}

	}
	#dialog_progress{
		height: 3px;
		width: 0%;
		background-color: @colorRed;
	}
	ul{
		height: 237px;
		margin-bottom: 10px;
		border-top: 1px solid @colorDeep;
		li{
			height: 22px;
			line-height: 22px;
			text-align: left;
			&:hover{
				background-color: mix(@colorTheme, white, 94%);
			}
			&.curr{
				background-color: @colorHover;
			}
			&.done{
				span{
					color: @colorRed;
				}
			}
			em{
				width: 16px;
				height: 16px;
				border: 1px solid @colorRed;
				box-sizing: border-box;
				display: inline-block;
				margin: 3px 1px 0 2px;
				vertical-align: top;
				&.on{
					background-color: @colorRed;
				}
			}
			span{
				.textfix;
				width: 290px;
				margin-left: 3px;
				display: inline-block;
			}
			i{
				float: right;
				text-align: right;
				width: 56px;
				margin-right: 3px;
				font-style: normal;
			}
		}
	}
}

#dialog_bgmedit{
	width: 560px;
	height: 214px;
	margin: -105px 0 0 -280px;
	.simple-line {
		line-height: 24px;
		text-align: left;
		&>span {
			display: inline-block;
			width: 80px;
		}
		input{
			margin-left: 0px;
		}
	}
	.line{
		line-height: 24px;
		text-align: left;
		&>span{
			display: inline-block;
			width: 80px;
			vertical-align: top;
			&.right{
				float: right;
				margin-right: 0;
			}
		}
		input{
			width: 78px;
			margin-left: 16px;
			.middle(22px);
		}
		#dialog_timing_title{
			padding-left: 4px;
			width: 350px;
		}
	}
	.ret{
		margin: 6px 0;
		i{
			display: inline-block;
			width: 60px;
			padding-left: 3px;
			font-style: normal;
		}
		input{
			margin: 0;
		}
	}
	.btn{
		padding: 0 0 10px 80px;
		margin: 3px 0 10px;
		position: relative;
		border-bottom: 1px solid black;
		&:after{
			.shadow;
			content: '';
			position: absolute;
			bottom: -2px;
			left: 0;
		}
		.g_button{
			width: 24px;
			&:nth-child(1){
				i{
					background-position: -40px -165px;
				}
			}
			&:nth-child(2){
				i{
					background-position: -11px -165px;
				}
			}
		}
		.right{
			float: right;
			display: inline-block;
			span{
				padding-left: 5px;
			}
		}
	}
}

#dialog_export_mcz{
	width: 400px;
	height: 390px;
	margin: -185px 0 0 -200px;
	.directions{;
		text-align: left;
	}
	span.directions{
		float:left;
	}
	.file_list{
		margin-top: 4px;
		width: 100%;
		height: 210px;
		overflow-y: auto;
		ul{
			margin-bottom: 10px;
			border-top: 1px solid #000000;
			li{
				height: 22px;
				line-height: 22px;
				text-align: left;
				&:hover{
					background-color: transparent;
				}
				&.curr{
					background-color: @colorHover;
				}
			}
		}
	}
}

#dialog_grid_move{
	width: 360px;
	height: 106px;
	margin: -53px 0 0 -180px;
	input{
		width: 60px;
	}
}

#dialog_interval{
    width: 450px;
    height: 190px;
    margin: -53px 0 0 -180px;
    input{
        width: 150px;
    }
    .desc{
        padding-top: 8px;
        text-align: left;
    }
}

#dialog_simplify{
    width: 500px;
    height: 336px;
    margin: -123px 0 0 -180px;
    .line{
        text-align: left;
        &.beat-align{
            input{
                width: 375px;
                text-align: left;
            }
        }
        b{
            color: @colorRed;
        }
    }
    #advance_mode{
        width: 120px;
    }
}